import request from '@/utils/request'

// 查询计划详情列表
export function listPlanDetails(query) {
  return request({
    url: '/reminders/PlanDetails/list',
    method: 'get',
    params: query
  })
}

// 查询计划详情详细
export function getPlanDetails(id) {
  return request({
    url: '/reminders/PlanDetails/' + id,
    method: 'get'
  })
}

// 新增计划详情
export function addPlanDetails(data) {
  return request({
    url: '/reminders/PlanDetails',
    method: 'post',
    data: data
  })
}

// 修改计划详情
export function updatePlanDetails(data) {
  return request({
    url: '/reminders/PlanDetails',
    method: 'put',
    data: data
  })
}

// 删除计划详情
export function delPlanDetails(id) {
  return request({
    url: '/reminders/PlanDetails/' + id,
    method: 'delete'
  })
}
